.class public Lcom/glympse/platform/Reflection$_Configuration;
.super Ljava/lang/Object;
.source "Reflection.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/platform/Reflection;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "_Configuration"
.end annotation


# static fields
.field private static ms_fLoaded:Z

.field private static ms_oField_screenLayout:Ljava/lang/reflect/Field;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 216
    const/4 v0, 0x0

    sput-boolean v0, Lcom/glympse/platform/Reflection$_Configuration;->ms_fLoaded:Z

    .line 217
    const/4 v0, 0x0

    sput-object v0, Lcom/glympse/platform/Reflection$_Configuration;->ms_oField_screenLayout:Ljava/lang/reflect/Field;

    .line 214
    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 214
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method private static Load()V
    .locals 2

    .prologue
    .line 222
    sget-boolean v0, Lcom/glympse/platform/Reflection$_Configuration;->ms_fLoaded:Z

    if-nez v0, :cond_0

    .line 224
    const/4 v0, 0x1

    sput-boolean v0, Lcom/glympse/platform/Reflection$_Configuration;->ms_fLoaded:Z

    .line 228
    :try_start_0
    const-class v0, Landroid/content/res/Configuration;

    const-string v1, "screenLayout"

    invoke-virtual {v0, v1}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;

    move-result-object v0

    sput-object v0, Lcom/glympse/platform/Reflection$_Configuration;->ms_oField_screenLayout:Ljava/lang/reflect/Field;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 234
    :cond_0
    :goto_0
    return-void

    .line 230
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public static screenLayout(Landroid/content/res/Configuration;)I
    .locals 2
    .parameter "oConfiguration"

    .prologue
    .line 239
    if-eqz p0, :cond_0

    .line 241
    invoke-static {}, Lcom/glympse/platform/Reflection$_Configuration;->Load()V

    .line 243
    sget-object v1, Lcom/glympse/platform/Reflection$_Configuration;->ms_oField_screenLayout:Ljava/lang/reflect/Field;

    if-eqz v1, :cond_0

    .line 247
    :try_start_0
    sget-object v1, Lcom/glympse/platform/Reflection$_Configuration;->ms_oField_screenLayout:Ljava/lang/reflect/Field;

    invoke-virtual {v1, p0}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Ljava/lang/Integer;

    invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v1

    .line 255
    :goto_0
    return v1

    .line 249
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 251
    .local v0, e:Ljava/lang/Exception;
    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/Throwable;)V

    .line 255
    .end local v0           #e:Ljava/lang/Exception;
    :cond_0
    const/4 v1, 0x0

    goto :goto_0
.end method
